# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-stegoveritas-pfp
_pkgname=stegoveritas-pfp
pkgver=0.2.3
pkgrel=9
pkgdesc='An interpreter for 010 template scripts.'
arch=('any')
url='https://pypi.org/project/stegoveritas-pfp/#files'
license=('MIT')
depends=('python' 'python-stegoveritas-py010parser' 'python-six'
         'python-intervaltree')
makedepends=('python-setuptools')
replaces=('python-pfp')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a03c2e71adecc2221cf68c5b3256850de4280ac3db601f77337b73dfc0e7f75c54c00420f1c7c109dab37f783decf7c66804682aeca929e8bcd348d8f16e708c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

